FROM java:8-jdk-alpine
MAINTAINER liuyang@umxwe.com
RUN apk-get install curl
VOLUME /tmp
ENV TZ=Asia/Shanghai
ENV LANG=zh_CN.UTF-8
ADD target/kill-gateway-0.0.1-SNAPSHOT.jar app.jar
COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/localtime && touch /app.jar
ENTRYPOINT [ "sh", "-c", "exec java ${JAVA_OPTS} -Dfile.encoding=utf-8 -Djava.security.egd=file:/dev/.urandom -jar /app.jar"]